package cn.xej.easyexcel.mapper;

import cn.xej.easyexcel.pojo.Book;
import cn.xej.easyexcel.pojo.ClassInfo;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface BookMapper {

    int addBook(final Book book);

    List<Book> initBookTable(Map<String, Object> map);

    int initBookTableCount(Map<String, Object> map);


    Book getBookByBookId(long bookId);

    void deleteBookByBookId(long bookId);

    void updateBookByBookId(Book book);

    List<ClassInfo> getClassNames();

    void updateBookNumber(int number,long bookId);

    List<Book> initMyBookTable(Map<String, Object> map);

    int initMyBookTableCount(Map<String,Object> map);

    List<Book> getBooks();
}
